package com.cdxy.model.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author: tangy
 * @Date: 2020/3/10 10:57
 */
@Data
@ApiModel
public class ModifyPasswordReq extends UserWithLoginReq implements Serializable {

    private static final long serialVersionUID = 5582539025263153453L;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "验证码不能为空")
    private String code;

    @ApiModelProperty(value = "现密码", required = true)
    @NotBlank(message = "现密码不能为空")
    @Size(min = 32, max = 32)
    private String password;
}
